package com.example.demo;

import com.example.demo.client.Person;
import com.example.demo.client.PersonServiceImpl;
import com.example.demo.client.PersonServiceImplPortImpl;
import com.example.demo.client.PersonServiceImplService;

import java.util.List;

public class App {
    public static void main(String[] args) {
        PersonServiceImplService ps = new PersonServiceImplService();
        PersonServiceImpl pis = ps.getPersonServiceImplPort();
        List<Person> list = pis.getPersonsInfo("1",2);
        for(Person p : list){
            System.out.println(p.getAge() + " " + p.getName());
        }
    }
}
